package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/***
 * 采集点位说明表
 * @author chuck
 *
 */
@Entity
@Table(name="sl_crm_ScadaBasePoint")
public class ScadaBasePoint extends Root{
	/***
	 * 采集单元ID
	 */
	private String scadaRtuBaseInfoId;
	
	/***
	 * 实点 0
	 * 需点 1
	 * 
	 */
	private int pointType;
	
	/***
	 * 点位名称
	 */
	private String name;
	
	/***
	 * 别名
	 */
	private String alias;
	
	/***
	 * 计量单位
	 */
	private String unit;
	
	/***
	 * 备注
	 */
	private String memo;
	
	/***
	 * 数据类型
	 * 0 模拟量
	 * 1 开关量
	 */
	@Column(name = "DataType")
	private int dataType;
	
	/***
	 * 正常下限（模拟量）
	 */
	private Double lowLimit;
	
	/***
	 * 正常上限（模拟量）
	 */
	@Column(name = "UpperLimit")
	private Double upperLimit;
	
	/***
	 * 正常值(开关量)
	 */
	@Column(name = "SwitchingValue")
	private Integer switchingValue;
	
	/***
	 * 实时采集表字段
	 */
	private String dataField;
	
	/**	创建者 */
	@ManyToOne
	private User user;
	
	public String getScadaRtuBaseInfoId() {
		return scadaRtuBaseInfoId;
	}

	public void setScadaRtuBaseInfoId(String scadaRtuBaseInfoId) {
		this.scadaRtuBaseInfoId = scadaRtuBaseInfoId;
	}

	public int getPointType() {
		return pointType;
	}

	public void setPointType(int pointType) {
		this.pointType = pointType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public int getDataType() {
		return dataType;
	}

	public void setDataType(int dataType) {
		this.dataType = dataType;
	}

	public Double getLowLimit() {
		return lowLimit;
	}

	public void setLowLimit(Double lowLimit) {
		this.lowLimit = lowLimit;
	}

	public Double getUpperLimit() {
		return upperLimit;
	}

	public void setUpperLimit(Double upperLimit) {
		this.upperLimit = upperLimit;
	}

	public String getDataField() {
		return dataField;
	}

	public void setDataField(String dataField) {
		this.dataField = dataField;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public Integer getSwitchingValue() {
		return switchingValue;
	}

	public void setSwitchingValue(Integer switchingValue) {
		this.switchingValue = switchingValue;
	} 
	
	
	
}
